// 1. 引入你需要的组件
import {
  Button,
  Cell,
  CellGroup,
  Image,
  Field,
  ActionSheet,
  RadioGroup,
  Radio,
  DatePicker,
  Popup,
  Picker,
  Area,
  Icon,
  SwipeCell,
  Checkbox,
  Popover,
  PullRefresh,
} from 'vant'

// 2.引入 Vant组件样式
import 'vant/lib/index.css'
import '@/assets/main.css'
import '@/common/normalize.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

// 3. 注册你需要的组件
const app = createApp(App)

app.use(createPinia())
app.use(router)

app.mount('#app')
app
  .use(Button)
  .use(Cell)
  .use(CellGroup)
  .use(Image)
  .use(Field)
  .use(ActionSheet)
  .use(RadioGroup)
  .use(Radio)
  .use(DatePicker)
  .use(Popup)
  .use(Picker)
  .use(Area)
  .use(Icon)
  .use(SwipeCell)
  .use(Checkbox)
  .use(Popover)
  .use(PullRefresh)
